package com.ruoyi.payInfo.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.payInfo.domain.PayInfo;
import com.ruoyi.payInfo.mapper.PayInfoMapper;
import com.ruoyi.payInfo.service.IPayInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * payInfoService业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-08
 */
@Service
public class PayInfoServiceImpl implements IPayInfoService 
{
    @Autowired
    private PayInfoMapper payInfoMapper;

    /**
     * 查询payInfo
     * 
     * @param id payInfo主键
     * @return payInfo
     */
    @Override
    public PayInfo selectPayInfoById(Long id)
    {
        return payInfoMapper.selectPayInfoById(id);
    }

    /**
     * 查询payInfo列表
     * 
     * @param payInfo payInfo
     * @return payInfo
     */
    @Override
    public List<PayInfo> selectPayInfoList(PayInfo payInfo)
    {
        return payInfoMapper.selectPayInfoList(payInfo);
    }

    /**
     * 新增payInfo
     * 
     * @param payInfo payInfo
     * @return 结果
     */
    @Override
    public int insertPayInfo(PayInfo payInfo)
    {
        return payInfoMapper.insertPayInfo(payInfo);
    }

    /**
     * 修改payInfo
     * 
     * @param payInfo payInfo
     * @return 结果
     */
    @Override
    public int updatePayInfo(PayInfo payInfo)
    {
        return payInfoMapper.updatePayInfo(payInfo);
    }

    /**
     * 批量删除payInfo
     * 
     * @param ids 需要删除的payInfo主键
     * @return 结果
     */
    @Override
    public int deletePayInfoByIds(String ids)
    {
        return payInfoMapper.deletePayInfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除payInfo信息
     * 
     * @param id payInfo主键
     * @return 结果
     */
    @Override
    public int deletePayInfoById(Long id)
    {
        return payInfoMapper.deletePayInfoById(id);
    }
}
